#include <stdio.h>

typedef struct{
	int numitor;
	int numarator;
}Rational;
Rational suma(Rational, Rational );
Rational produs(Rational,Rational);
Rational diff(Rational,Rational);
Rational q(Rational, Rational);
Rational simplifica(Rational rez);
int main()
{
	Rational f1,f2;
	f1.numarator=2;
	f1.numitor=2;
	f2.numitor=2;
	f2.numarator=2;
	printf("%d|%d",suma(f1,f2).numarator,suma(f1,f2).numitor);	
	printf("\n%d|%d",produs(f1,f2).numarator,produs(f1,f2).numitor);	
	return 0;
}
Rational suma(Rational f1, Rational f2)
{
	Rational rez;
	rez.numarator=f1.numarator*f2.numitor+f1.numitor*f2.numarator;
	rez.numitor=f1.numitor*f2.numitor;
	return rez;
}
Rational produs(Rational f1,Rational f2)
{
	Rational rez;
	rez.numarator=f1.numarator*f2.numarator;
	rez.numitor=f1.numitor*f2.numitor;
	return rez;
}



